package Logica.PowerUps;

import Graficas.InterfaceGrafica;
import Graficas.SpriteMovements;
import Logica.Mario;

/**
 * Clase para un PowerUp Hongo verde.
 * @author MATIAS
 *
 */
public class HongoVerde extends PowerUp {
	/* << CONSTRUCTOR >> */
	public HongoVerde (int sizeX,int sizeY,SpriteMovements sm,InterfaceGrafica ig){
		super.iniObjeto (sizeX,sizeY,sm,ig);
	}
	
	/* << COMANDOS >> */
	public void moverse(){
		super.moverse();
	}
	public void modificarMario(Mario m){
		m.aumentarVida();
	}
	
	public PowerUp clone(){
		HongoVerde pw = new HongoVerde(this.sizeX,this.sizeY,this.sm.clone(),this.ig);
		pw.setX(this.getX());
		pw.setY(this.getY());
		pw.setDirActual(this.getDirActual());
		pw.setInteligencia(this.intel);
		
		return pw;
	}

	@Override
	public void disparar() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void hacerInvulnerable() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void aumentarVidas() {
		mario.aumentarVida();
		quitarCaracteristica();
	}

	@Override
	public void matarEnemigosVisibles() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void morirMario() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void hacerAccion() {
		aumentarVidas();
	}

	@Override
	public void aumentarPuntos() {
		mario.aumentarPuntos(intel.getPuntuacion().puntosPorHongoVerde());
		
	}

}
